use tessor::{LineCommand, Mesh, Point, Tessellator, Writer};

#[test]
fn test_polygon() {
	let mut mesh = Mesh::new();
	Tessellator::new().tessellate(
		[
			LineCommand::MoveTo(Point::new(0.49409294, 0.38215515)),
			LineCommand::LineTo(Point::new(0.4404721, 0.3451575)),
			LineCommand::LineTo(Point::new(0.44068092, 0.3426628)),
			LineCommand::LineTo(Point::new(0.49409294, 0.38215515)),
			LineCommand::Close,
		]
		.iter()
		.cloned(),
		&mut Writer::new(&mut mesh),
		&mut Vec::new(),
		&mut Vec::new(),
	);
}
